package biz

type PromJson struct {
	Targets []string          `json:"targets"`
	Labels  map[string]string `json:"labels"`
}

type Store interface {
	Name() string
	Get() []PromJson
	Add([]string) error
	Clean()
}

type StoreRepo struct {
	data Store
}

func NewStoreRepo(d Store) *StoreRepo {
	return &StoreRepo{data: d}
}

func (s StoreRepo) Add(instances []string) error {
	return s.data.Add(instances)
}
